<style>
.equipmentOutput span.error {
    position: absolute !important;
    left: 260px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/equipmentOutput/saveEquipmentOutput" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" <#if pattern=="modify">layoutH="130"<#else>layoutH="100"</#if> >
            <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (equipmentOutput.id)??>${equipmentOutput.id!''}</#if>">
            <fieldset>
                <dl>
                    <dt><@label key="equipmentCode.C,colon">设备编号：</@label></dt>
                    <#if pattern!="modify">
                    <dd  class="equipmentOutput">
                        <input class="required look" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" postField="equipmentCode" 
                        suggestFields="equipmentCode,equipmentText" suggestUrl="${rc.getContextPath()}/manage/equipment/equipmentSuggest" 
                        value="<#if (equipmentOutput.equipmentCode)??>${equipmentOutput.equipmentCode!''}</#if>" lookupGroup="equipmentLookup" 
                        warn="<@label key='equipmentCode.C,doesNotExist.C'>设备编号不存在</@label>" 
                        remote="${rc.getContextPath()}/manage/equipment/validateEquipmentCodeForSelect" /> 
                        <a class="btnLook" href="${rc.getContextPath()}/manage/equipment/equipmentLookUp" rel="equipmentLookup_dialog" width="700" height="450" lookupGroup="equipmentLookup"></a>
                    </dd>
                    <#else>
                    <dd  class="equipmentOutput">
                        <input class="required" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" readonly="readonly"
                        value="<#if (equipmentOutput.equipmentCode)??>${equipmentOutput.equipmentCode!''}</#if>" 
                    </dd>
                    </#if>
                </dl>
                <dl>
                    <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
                    <dd>
                        <input id="equipmentLookup.equipmentText" value="<#if (equipmentOutput.equipmentText)??>${equipmentOutput.equipmentText!''}</#if>"  readonly size="22" type="text" maxlength="60" name="equipmentText" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="theDate.C,colon">作业日期：</@label></dt>
                    <dd class="equipmentOutput">
                        <input type="text" id="jobDate" class="required date" readonly="readonly" name="theDate" dateFmt="yyyy-MM-dd" value="${(equipmentOutput.theDate?string('yyyy-MM-dd'))?if_exists}"/> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='goodParts.C,colon'>良品数量：</@label></dt>
                    <dd>
                        <input  value="${equipmentOutput.goodParts!''}" type="text" class="required digits" min="0" name="goodParts" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='defectiveParts.C,colon'>不良品数量：</@label></dt>
                    <dd>
                        <input value="${equipmentOutput.defectiveParts!''}"  type="text" class="required digits" min="0" name="defectiveParts" />
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if (equipmentOutput.id)??> <#assign createInfo=equipmentOutput/> <#include "/common/createInfo.html"> </#if>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="save.B">保存</@label></button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="buttonActiveGrey">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </form>
</div>
